<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- <link rel="stylesheet" type="text/css" href="{{ asset('admins/css/style.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('admins/css/WdatePicker.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('admins/css/skin_/table.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('admins/css/jquery.grid.css') }}" />
 -->



<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>Document</title>
  <link href="{{ asset('/boot/css/bootstrap.min.css') }}" rel="stylesheet">
<!--  -->
</head>
<body>
<center>  
<form action="" method="post" name="myForm">
    {{ csrf_field() }}
    {{ method_field('delete') }}
</form>
   <table class="table table-bordered" >
   <p class="bg-primary">@if( session('msg') )
              {{ session()->get('msg') }}
              @endif</p>
  
   <h4><p class="bg-info">
    <a href="{{ url('/admin/adminUserName') }}">浏览</a>
    /
    <a href="{{ url('admin/adminUserName/create') }}">添加</a> </p></h2>


   
   <thead style="text-align:center;">
      <tr>
       <td><b>Id</b></td>
        <td><b>管理员</b></td>
        <td><b>权限</b></td>
         <td><b>操作<b></td>
      </tr>
   </thead>
  <tbody>
      <tr>
          @foreach($list as $v)
                <tr align="center">
                    <td>{{ $v->adminId }}</td>
                    <td>{{ $v->adminName }}</td>
                    <td>{{ $v->adminAuth == 1?'超级管理员':'普通管理员' }}</td>
                    <td><a href="javascript:dodel({{ $v->adminId }})">{{ $v->adminAuth == 1?'':'删除' }}<a>//
                        
                        <a href="/admin/adminUserName/{{ $v->adminId }}/edit">{{ $v->adminAuth == 1?'修改':'修改' }}</a>
                    </td>
                </tr>
         @endforeach
      </tr>
     
   </tbody>
   </table>
{{ $list->links() }}
</body>
<script type="text/javascript">
        function dodel(id)
        {
           
            if (confirm('确定要删除吗?')) {
                var form = document.myForm;
                form.action = '/admin/adminUserName/'+id;
                form.submit();
            }
        }
    </script>
</html>

</body>
 
</html>
